package com.zhoug.zmuidemo;

import android.util.Log;

/**
 * @Author 35574
 * @Date 2020/7/22
 * @Description
 */
public class B extends A {
    private static final String TAG = ">>>B";
    private int age=10;
    public B() {
        super();
        Log.d(TAG, "B:age="+age);//age=10
        age=20;
        Log.d(TAG, "B:age="+age);//age=20
    }
    @Override
    public void init() {
        super.init();
        Log.d(TAG, "init:age="+age);//age=0
        age=30;
        Log.d(TAG, "init:age="+age);//age=30
    }

    public void printAge() {
        Log.d(TAG, "printAge:age="+age);//age=20
    }
}
